package lzm.entity;

import org.springframework.stereotype.Component;

//@Component
public class Teacher {

    private String name;

    private int age;

    public Teacher() {
        System.out.println("通过默认构造器创建对象Teacher");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
